package com.health.ts.entity.sysmanage;
import java.util.Date;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.health.ts.constant.ValidGroup;
/**
 * 医院机构映射表
 * 
 * @author Administrator
 */
@TableName("sys_hospital")
public class SysHospital extends Model<SysHospital> {

	private static final long serialVersionUID = -8842712755174396158L;

	@TableId
	private String id;

	private String hospital_code;
	private String hospital_name;
	private String hospital_level;
	private String hospital_rank;
	private String economic_type;
	private String health_type;
	@NotBlank(message="医院地址不能为空", groups = {ValidGroup.Crud.Create.class, ValidGroup.Crud.Update.class})
	private String addr;
	private String legal_person;
	private String domain_name;
	private String parent_id;
	private String parent_name;
	private String telephone;
	private String branch;
	private String owner_province;
	
	@TableField(exist=false)
	private String province_name;
	private String owner_city;
	@TableField(exist=false)
	private String city_name;
	private String owner_country;
	@TableField(exist=false)
	private String country_name;
	private String hospital_profile;
//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date create_time;
//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date update_time;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getHospital_code() {
		return hospital_code;
	}

	public void setHospital_code(String hospital_code) {
		this.hospital_code = hospital_code;
	}

	public String getHospital_name() {
		return hospital_name;
	}

	public void setHospital_name(String hospital_name) {
		this.hospital_name = hospital_name;
	}

	public String getHospital_level() {
		return hospital_level;
	}

	public void setHospital_level(String hospital_level) {
		this.hospital_level = hospital_level;
	}

	public String getHospital_rank() {
		return hospital_rank;
	}

	public void setHospital_rank(String hospital_rank) {
		this.hospital_rank = hospital_rank;
	}

	public String getEconomic_type() {
		return economic_type;
	}

	public void setEconomic_type(String economic_type) {
		this.economic_type = economic_type;
	}

	public String getHealth_type() {
		return health_type;
	}

	public void setHealth_type(String health_type) {
		this.health_type = health_type;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getLegal_person() {
		return legal_person;
	}

	public void setLegal_person(String legal_person) {
		this.legal_person = legal_person;
	}

	public String getDomain_name() {
		return domain_name;
	}

	public void setDomain_name(String domain_name) {
		this.domain_name = domain_name;
	}

	public String getParent_id() {
		return parent_id;
	}

	public void setParent_id(String parent_id) {
		this.parent_id = parent_id;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getBranch() {
		return branch;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public String getHospital_profile() {
		return hospital_profile;
	}

	public void setHospital_profile(String hospital_profile) {
		this.hospital_profile = hospital_profile;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public String getParent_name() {
		return parent_name;
	}

	public void setParent_name(String parent_name) {
		this.parent_name = parent_name;
	}
	public String getOwner_province() {
		return owner_province;
	}

	public void setOwner_province(String owner_province) {
		this.owner_province = owner_province;
	}

	public String getOwner_city() {
		return owner_city;
	}

	public void setOwner_city(String owner_city) {
		this.owner_city = owner_city;
	}

	public String getOwner_country() {
		return owner_country;
	}

	public void setOwner_country(String owner_country) {
		this.owner_country = owner_country;
	}

	public String getProvince_name() {
		return province_name;
	}

	public void setProvince_name(String province_name) {
		this.province_name = province_name;
	}

	public String getCity_name() {
		return city_name;
	}

	public void setCity_name(String city_name) {
		this.city_name = city_name;
	}

	public String getCountry_name() {
		return country_name;
	}

	public void setCountry_name(String country_name) {
		this.country_name = country_name;
	}

}
